package org.xiaoyu.rpc.proxy;

import org.xiaoyu.rpc.Invoker;
import org.xiaoyu.rpc.common.extension.annotations.SPI;
import org.xiaoyu.rpc.common.url.URL;

/**
 * Created By Have
 * 2021/7/12 16:43
 */
@SPI("jdk")
public interface ProxyFactory {
    <T> T getProxy(Invoker<T> invoker, Class<?>[] interfaces);

    <T> Invoker<T> getInvoker(Object proxy, Class<T> type, URL url);
}
